Transforming Shapes by Modifying Transform Mappings
The mapping property of transform objects allows you to perform sophisticated transformations to your shape's geometries. To get and set the mapping property, use the functions described in the section "Getting and Setting the Mapping" beginning on page 6-53.The functions described in this section perform the calculations necessary to achieve common matrix transformations, without you having to modify the mapping matrix directly:
QuickDraw GX provides a corresponding set of functions that you can use to apply these common transformations directly to the geometry of a shape object, rather than to its transform mapping. They are described in the section "Transforming Shapes by Modifying Shape Geometries" beginning on page 6-65.
GXMoveTransform
alters a transform's mapping to move a shape by a specified horizontal and vertical offset.GXMoveTransformTo
alters a transform's mapping to move a shape to a specified position.GXScaleTransform
alters a transform's mapping to scale a shape by specified horizontal and vertical factors around a specified origin.GXRotateTransform
alters a transform's mapping to rotate a shape by a specified number of degrees around a specified origin.GXSkewTransform
alters a transform's mapping to skew a shape by specified horizontal and vertical factors around a specified origin.GXMapTransform
concatenates (using matrix multiplication) a specified mapping matrix to the mapping matrix contained in a transform's mapping property.
Subtopics
- GXMoveTransform
- GXMoveTransformTo
- GXScaleTransform
- GXRotateTransform
- GXSkewTransform
- GXMapTransform